package org.ailoli.aixiang.api

import io.reactivex.rxjava3.core.Observable
import org.ailoli.aixiang.bean.GetQrCodeUrlBean

import org.ailoli.aixiang.bean.LoginBean
import retrofit2.http.Body
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
import retrofit2.http.QueryMap

interface ApiService {

//    @FormUrlEncoded
    @POST("/api/auth/token?grant_type=client_credentials")
    fun login(@Body options: MutableMap<String?, Any?>): Observable<LoginBean?>?

    @POST("/api/1/Report/GetQRCodeUrl")
    fun getQrCodeUrl(@Body options: MutableMap<String?, Any?>): Observable<GetQrCodeUrlBean>?
}